package com.example.admin.yuejian21.Service;

import com.example.admin.yuejian21.Bean.Activity;
import com.example.admin.yuejian21.Bean.ActivityDetail;
import com.example.admin.yuejian21.Bean.AskList;
import com.example.admin.yuejian21.Bean.Club;
import com.example.admin.yuejian21.Bean.ClubDetail;
import com.example.admin.yuejian21.Bean.Concern;
import com.example.admin.yuejian21.Bean.Contest;
import com.example.admin.yuejian21.Bean.Login;
import com.example.admin.yuejian21.Bean.Master;
import com.example.admin.yuejian21.Bean.MasterDetail;
<<<<<<< HEAD
import com.example.admin.yuejian21.Bean.OrderDetail;
import com.example.admin.yuejian21.Bean.Pic;
import com.example.admin.yuejian21.Bean.PicDetail;
import com.example.admin.yuejian21.Bean.Reg;
import com.example.admin.yuejian21.Bean.about;
import com.example.admin.yuejian21.Bean.comment;
import com.example.admin.yuejian21.Bean.order;
import com.example.admin.yuejian21.Bean.shaitu;
=======

import com.example.admin.yuejian21.Bean.OrderInfo;
import com.example.admin.yuejian21.Bean.Reg;

import com.example.admin.yuejian21.Bean.UserOrder;
import com.example.admin.yuejian21.Bean.VideoList;
>>>>>>> 2e6d2ff2e3331c5e86ecd66212336d2d1a6d7e80
import com.example.admin.yuejian21.Bean.train;

import java.util.List;
import okhttp3.MultipartBody;
import com.squareup.okhttp.Response;
import com.squareup.okhttp.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
<<<<<<< HEAD
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Path;
=======
import retrofit2.http.POST;
>>>>>>> 2e6d2ff2e3331c5e86ecd66212336d2d1a6d7e80
import retrofit2.http.Query;

/**
 * Created by Admin on 2017/10/25.
 */


<<<<<<< HEAD
/**
=======


import com.example.admin.yuejian21.Bean.Activity;

import com.example.admin.yuejian21.Bean.Club;
import com.example.admin.yuejian21.Bean.ClubDetail;
import com.example.admin.yuejian21.Bean.Contest;
import com.example.admin.yuejian21.Bean.Course;
import com.example.admin.yuejian21.Bean.CourseA;
import com.example.admin.yuejian21.Bean.Login;
import com.example.admin.yuejian21.Bean.Master;

import com.example.admin.yuejian21.Bean.Pic;
import com.example.admin.yuejian21.Bean.MasterDetail;
import com.example.admin.yuejian21.Bean.Reg;
import com.example.admin.yuejian21.Bean.about;
import com.example.admin.yuejian21.Bean.train;
import com.example.admin.yuejian21.Bean.traindetail;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;


    /**
>>>>>>> 2e6d2ff2e3331c5e86ecd66212336d2d1a6d7e80
     * Created by Admin on 2017/9/26.
     */



public interface Service {
    //登陆
    @GET("Login")
    Call<Login> getLogin(
            @Query("tel") String tel,
            @Query("password") String password);

    //注册
    @GET("lists/mod/train")
    Call<List<train>>getTrainList(
            @Query("SessionID") String SessionID,
            @Query("page") String page);
    @GET("reg")
    Call<Reg> reg(
            @Query("tel") String tel,
            @Query("password") String password);

    @GET("lists/mod/activity")
    Call<List<Activity>> Activity(
            @Query("SessionID") String SessionID,
            @Query("page") String page);

    @GET("lists/mod/club")
    Call<List<Club>> club(
            @Query("SessionID") String SessionID
 , @Query("page") String page);
    @GET("lists/mod/master")
    Call<List<Master>> master(
            @Query("SessionID") String SessionID,
            @Query("page") String page);
    @GET("lists/mod/contest")
    Call<List<Contest>> getContestList();

        @GET("get/mod/{mod}/SessionID/{SessionID}/id/{id}")
        Call<Contest> getContestDetail(
                @Path("SessionID") String SessionID,
                @Path("mod") String mod,
                @Path("id") String id
        );

    @GET("get/mod/club")
    Call<ClubDetail> getclub(

            @Query("SessionID") String SessionID,
            @Query("id") String id);


    @GET("lists/mod/master")
    Call<List<MasterDetail>> masterdetail(

            @Query("SessionID") String SessionID,
            @Query("id") String id);

    @GET("lists/mod/club/related/1/map/Clubcourse")
    Call<CourseA> Course(
            @Query("SessionID") String SessionID
            ,@Query("page") String page,
    @Query("id") String id);
    @GET("nearclub")
    Call<List<Club>> near(
            @Query("SessionID") String SessionID
           ,
             @Query("longitude") String longitude,
            @Query("latitude") String latitude);
    @GET("get/mod/train")
    Call<traindetail> getrain(
            @Query("SessionID") String SessionID,
            @Query("id") String id);
    //获取训练详细信息
    @GET("get/mod/{mod}/SessionID/{SessionID}/id/{id}")
    Call<traindetail> getTraininfo(
            @Path("SessionID") String SessionID,
            @Path("mod") String mod,
            @Path("id") String id
    );
    //线下训练列表
    @GET("lists/mod/{mod}/SessionID/{SessionID}/degree/{Degree}")
    Call<List<traindetail>> getallTrain(
            @Path("SessionID") String SessionID,
            @Path("mod") String mod,
            @Path("Degree") String Degree
    );
    @GET("lists/mod/training")
    Call<List<train>> getTrainList();
    //获取线下训练
    @GET("lists/mod/train")
    Call<List<traindetail>> gettrainList();
        @GET("lists/mod/activity")
<<<<<<< HEAD
        Call<List<Activity>> Activity(
                @Query("SessionID") String SessionID,
                @Query("page") String page);

        @GET("lists/mod/club")
        Call<List<Club>> club(
                @Query("SessionID") String SessionID
                , @Query("page") String page);
        @GET("lists/mod/master")
        Call<List<Master>> master(
                @Query("SessionID") String SessionID,
                @Query("page") String page);
        @GET("lists/mod/contest")
        Call<List<Contest>> contest(
                @Query("SessionID") String SessionID,
                @Query("page") String page);
        @GET("get/mod/club")
        Call<ClubDetail> getclub(

                @Query("SessionID") String SessionID,
                @Query("id") String id);


        @GET("lists/mod/master")
        Call<List<MasterDetail>> masterdetail(

                @Query("SessionID") String SessionID,
                @Query("id") String id);

        @GET("get/mod/club/related/1/map/Clubcourse")
        Call<Club> Course(
                @Query("SessionID") String SessionID,
                @Query("id") String id);
        @GET("nearclub")
        Call<List<Club>> near(
                @Query("SessionID") String SessionID
                ,
                @Query("longitude") String longitude,
                @Query("latitude") String latitude);

        @GET("lists/mod/shaitu/related/1/")
        Call<List<Pic>> showpic(
                @Query("SessionID") String SessionID);
        @GET("getyuejian")
        Call<about> about(
                @Query("SessionID") String SessionID);
        @GET("slists/mod/shaitu/related/1/")
        Call<PicDetail> picdetail(
                @Query("SessionID") String SessionID,
        @Query("shaitu_id") String shaitu_id);
        @GET("focus/SessionID/060pn7sjorpnq5fp53kid5st54")
        Call<Integer> concern(
                @Query("userid") String userid,
                @Query("fan_id") String fan_id,
                @Query("fans_id") String fans_id
        );
        @GET("isExits/mod/fans/SessionID/060pn7sjorpnq5fp53kid5st54")
        Call<Integer> isconcern(
                @Query("userid") String userid,
                @Query("fan_id") String fan_id,
                @Query("fans_id") String fans_id
        );
        @GET("lists/mod/fans/SessionID/060pn7sjorpnq5fp53kid5st54")
       Call<List<Concern>> concernList(
               @Query("userid") String userid

        );
        @GET("lists/mod/sign/listorder/update_time/page/1/SessionID/pf2cmg5jk9p24f2mv1kjf55bo3")
        Call<List<order>> orderList1(
                @Query("userid") String userid
        );
        @GET("lists/mod/sign/listorder/update_time/vstate/0/page/1/SessionID/pf2cmg5jk9p24f2mv1kjf55bo3")
        Call<List<order>> orderList2(
                @Query("userid") String userid
        );
        @GET("lists/mod/sign/listorder/update_time/vstate/1/page/1/SessionID/pf2cmg5jk9p24f2mv1kjf55bo3")
        Call<List<order>> orderList3(
                @Query("userid") String userid
        );
        @GET("lists/mod/shaitu/SessionID/060pn7sjorpnq5fp53kid5st54")
        Call<List<shaitu>> shaituList(
                @Query("userid") String userid);


        @GET("create/mod/shaireply/SessionID/qpj6no2fa9fcfhpaule1tgoqp4")
         Call<Integer> comment(
            @Query("userid") String userid,
            @Query("shaitu_id") String shaitu_id,
            @Query("reply_userid") String reply_userid,
            @Query("reply") String reply
    );
        @GET("lists/mod/shaireply/related/1/SessionID/qpj6no2fa9fcfhpaule1tgoqp4")
        Call<List<comment>> reply(
                        @Query("shaitu_id") String shaitu_id

                );
        @GET("getDOrder/SessionID/pf2cmg5jk9p24f2mv1kjf55bo3")
        Call<OrderDetail> orderdetail(
                @Query("id") String id,
                @Query("type") String type
        );
    @GET("logout")
    Call<Object> logout(
            @Query("SeessionID") String SessionId

    );

    @GET("create/mod/feedback/SessionID/pf2cmg5jk9p24f2mv1kjf55bo3")
    Call<Integer> yj(
            @Query("content") String content,
            @Query("contact") String contact
    );
    @GET("updatename/SessionID/060pn7sjorpnq5fp53kid5st54"
            )
    Call<Integer> changeusername(
            @Query("userid") String userid,
            @Query("user_name") String user_name
    );
    @GET("updatepass/SessionID/060pn7sjorpnq5fp53kid5st54")
    Call<Integer> changepassword(
            @Query("userid") String content,
            @Query("password") String contact
    );
    @Multipart
    @POST("fcreate/mod/shaitu/userid/{userid}/title/{title}")
    Call<ResponseBody> signpic(
            @Path("userid") String uid,
            @Path("title") String title,
            //@Path("club_id") String cid,
            @Part MultipartBody.Part file
    );
=======
        Call<List<Activity>> getActivityList();

        @GET("get/mod/{mod}/SessionID/{SessionID}/id/{id}")
        Call<ActivityDetail> getActivityDetail(
                @Path("SessionID") String SessionID,
                @Path("mod") String mod,
                @Path("id") String id
        );
        @GET("create/mod/{mod}/participantname/{participantname}/act_id/{act_id}/participanttel/{participanttel}/" +
                "adultnum/{adultnum}/studentnum/{studentnum}/paytype/{paytype}/pay/{pay}/paynotice/{paynotice}/" +
                "insurance/{insurance}" +
                "/userid/{userid}/SessionID/{SessionID}")
        Call<Integer> signAct(
                @Path("mod") String mod,
                @Path("participantname") String participantname,
                @Path("act_id") String act_id,
                @Path("participanttel") String participanttel ,
                @Path("adultnum") String adultnum,
                @Path("studentnum")String studentnum,
                @Path("paytype") String paytype,
                @Path("pay") String pay,
                @Path("paynotice") String paynotice,
                @Path("insurance") String insurance,
                @Path("userid") int userid,
                @Path("SessionID") String SessionID
        );
        @GET("create/mod/{mod}/participantname/{participantname}/train_id/{train_id}/participanttel/{participanttel}/adultnum/{adultnum}/" +
                "paytype/{paytype}/pay/{pay}/paynotice/{paynotice}/userid/{userid}/SessionID/{SessionID}")
        Call<Integer> signTrain(
                @Path("mod") String mod,
                @Path("participantname") String participantname,
                @Path("train_id") String train_id,
                @Path("participanttel") String participanttel,
                @Path("adultnum") String adultnum,
                @Path("paytype") String paytype,
                @Path("pay") String pay,
                @Path("paynotice") String paynotice,
                @Path("userid") int userid,
                @Path("SessionID") String SessionID
        );

        @GET("getDOrder/id/{id}/type/{type}/SessionID/{SessionID}")
        Call<OrderInfo> getOrder(
                @Path("id") String id,
                @Path("type") String type,
                @Path("SessionID") String SessionID
        );
        @GET("lists/mod/{mod}/listorder/update_time/userid/{userid}/SessionID/{SessionID}")
        Call<List<UserOrder>> getallorder(
                @Path("mod") String mod,
                @Path("userid") int userid,
                @Path("SessionID") String SessionID
        );

        //获取已完成或者未参加订单
        @GET("lists/mod/{mod}/listorder/update_time/userid/{userid}/vstate/{vstate}/SessionID/{SessionID}")
        Call<List<UserOrder>> getordertype(
                @Path("mod") String mod,
                @Path("userid") int userid,
                @Path("vstate") int vstate,
                @Path("SessionID") String SessionID
        );
>>>>>>> 2e6d2ff2e3331c5e86ecd66212336d2d1a6d7e80
    }

